package com.itheima.tlias.mapper;


import com.itheima.tlias.pojo.EmpLog;
import com.itheima.tlias.pojo.EmpLoginLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface EmpLogMapper {
    //插入日志
    @Insert("insert into emp_log (operate_time, info) values (#{operateTime}, #{info})")
    public void insert(EmpLog empLog);

    @Insert("insert into emp_login_log( username, password, login_time, is_success, jwt, cost_time) " +
            "values(#{username},#{password},#{loginTime},#{isSuccess},#{jwt},#{costTime}) ")
    public void insertLoginLog(EmpLoginLog empLoginLog);
}